//package com.bolingcavalry.plm.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.web.SecurityFilterChain;
//
//@Configuration
//@EnableWebSecurity
//public class BasicSecurityConfig {
//
//    @Bean
//    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
//        // 使用旧版的 authorizeRequests()
//        http
//                .authorizeRequests()
//                // 使用 antMatchers
//                .antMatchers("/auth/login").permitAll()
//                .anyRequest().authenticated()
//                .and()
//                .csrf().disable(); // 关闭 CSRF 保护
//
//        return http.build();
//    }
//}